<div class="doc-item" id="doc-1138"><h2 class="doc-item-name">pprint-defn<span class="namespace">(clojure.contrib.pprint)</span></h2><ul class="var-arglists"><li>(<span class="var-name">pprint-defn</span>  alis)</li></ul><div class="var-source"><pre>; clojure/contrib/pprint/dispatch.clj:173
(defn pprint-defn [alis]
  (if (next alis) 
    (let [[defn-sym defn-name &amp; stuff] alis
          [doc-str stuff] (if (string? (first stuff))
                            [(first stuff) (next stuff)]
                            [nil stuff])
          [attr-map stuff] (if (map? (first stuff))
                             [(first stuff) (next stuff)]
                             [nil stuff])]
      (pprint-logical-block :prefix &quot;(&quot; :suffix &quot;)&quot;
        ((formatter-out &quot;~w ~1I~@_~w&quot;) defn-sym defn-name)
        (if doc-str
          ((formatter-out &quot; ~_~w&quot;) doc-str))
        (if attr-map
          ((formatter-out &quot; ~_~w&quot;) attr-map))
        ;; Note: the multi-defn case will work OK for malformed defns too
        (cond
         (vector? (first stuff)) (single-defn stuff (or doc-str attr-map))
         :else (multi-defn stuff (or doc-str attr-map)))))
    (pprint-simple-code-list alis)))</pre></div><div class="license"><p>Copyright (c) Rich Hickey. All rights reserved.</p><p>The use and distribution terms for this software are covered by the <a href="http://opensource.org/licenses/eclipse-1.0.php">Eclipse Public License 1.0</a>, which can be found in the file
          epl-v10.html at the root of this distribution. By using this software
          in any fashion, you are agreeing to be bound by the terms of this
          license. You must not remove this notice, or any other, from this
          software.</p></div></div>